package com.blog.service.frontpage;

import java.util.List;

import com.blog.dao.frontpage.UserDao;
import com.blog.entity.UserEntity;
import com.blog.entity.UserLoginEntity;

public class UserService {

	UserDao dao = new UserDao();
	
	/**
	 * 注册时插入数据
	 * @param user
	 * @return
	 */
	public int insertUserForReg(UserEntity user) {
		return dao.insertUserForReg(user);
		
	}
	/**
	 * 查询用户名
	 * @return
	 */
	public UserEntity queryUnameForLogin(String phone) {
		return dao.queryUnameForLogin(phone);
	}
	/**
	 * 查询密码是否正确
	 * @param phone
	 * @return
	 */
	
	public UserLoginEntity  queryPasswordForLogin(String phone) {
		return dao.queryPasswordForLogin(phone);
	}
	public UserEntity queryPasswordForLogin1(String phone) {
		return dao.queryPasswordForLogin1(phone);
	}

}
